package com.example.uploadminio.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucket;
    private String bucketPrefix;
    private String watchDir;
    private Boolean autoStart = false;
    private Boolean autoWatch = false;
    private Integer scanInterval = 60; // 默认值设为60 min
    private Integer maxRetries=3; // 最大重试次数
    private Integer retryDelay=2; // 重试间隔（秒）
}